package bibliotecas;

import java.awt.*;

import javax.swing.*;

public class JSmartButton extends JButton{

	private static final long serialVersionUID = 229244689754684248L;

	public JSmartButton(){
		init();
	}
	
	public JSmartButton(String texto){
		this.setText(texto);
		init();
	}
	
	public void init(){
		if(System.getProperty("os.name").equals("Linux")){
			this.setFont(new Font("Ubuntu",0,14));
		}else{
			this.setFont(new Font("Arial",0,14));
		}
		this.setMargin(new Insets(0,0,0,0));
		this.setBackground(new Color(200,200,200));
		this.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, new Color(150,150,150)));
	}
	
}
